Skip to content

Remove a couple of possible panics when opening a post #1132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

LawnGnome
Copy link
Contributor

I'm not actually so bothered about the panics per se, but this way a naïve user like myself who accidentally created a zero length file in posts gets a useful error message.

I'm not actually so bothered about the panics per se, but this way a
naïve user like myself who accidentally created a zero length file in
`posts` gets a useful error message.
Copy link
Member

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like a useful and well-scoped improvement 👍

I agree that the rest can be cleaned up separately 😅

@Turbo87 Turbo87 merged commit 38442da into rust-lang:master Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants